package com.duing.util;

import com.duing.config.bean.RankBean;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class RankUtil {

    public static void main(String[] args) {
        RankBean rankBean1 = new RankBean("001",5);
        RankBean rankBean2 = new RankBean("002",10);
        RankBean rankBean3 = new RankBean("003",15);

        List<RankBean> rankList = new ArrayList<>();
        rankList.add(rankBean1);
        rankList.add(rankBean2);
        rankList.add(rankBean3);

        Collections.sort(rankList);
        System.out.println();


    }
}
